package com.cqie.bookInfo.controller;


import com.cqie.entity.BookInfo;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.awt.print.Book;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 小飞
 * @since 2024-04-16
 */
@RestController
@RequestMapping("/bookInfo/")
@Api(tags = "书本信息管理")
public class BookInfoController {
    @GetMapping("getBookInfo")
    public BookInfo getBookInfo(){
        BookInfo bookInfo = new BookInfo();
        bookInfo.setId(1L);
        bookInfo.setBookName("王八蛋");
        return bookInfo;
    }
}

